<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %>
<% String title = "信息综合系统"; %>
<title><%=title %>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="apple-itunes-app" content="app-id=429849944" />
<meta name="apple-touch-fullscreen" content="no" />
<meta content="telephone=no" name="format-detection" />
<meta name="apple-mobile-web-app-capable" content="no" />
</head>

<!-- BEGIN BODY -->
<body class="fixed-top" style="overflow:auto;margin:0px;padding:0px !important;">
<!-- ui-dialog -->
<div id="dialog2" title="Dialog Title" class="ui-dialog-content ui-widget-content">

</div>

<!-- BEGIN HEADER -->
<div id="header" class="navbar navbar-inverse navbar-fixed-top">
    <!-- BEGIN TOP NAVIGATION 导航 BAR -->
    <div class="navbar-inner">
        <div class="container-fluid" >
            <!--BEGIN SIDEBAR TOGGLE-->
            <div class="sidebar-toggle-box hidden-phone">
                <div class="icon-reorder tooltips" data-placement="right"
                     data-original-title="导航菜单栏"></div>
            </div>
            <!--END SIDEBAR TOGGLE-->

            <!-- BEGIN LOGO -->
            <a class="brand"
               href="${pageContext.request.contextPath}/user/index.do">
                <img src="${pageContext.request.contextPath}/img/logo.png" alt="全安药业">
            </a>
            <!-- END LOGO -->

            <!-- BEGIN RESPONSIVE MENU TOGGLER -->
            <a class="btn btn-navbar collapsed" id="main_menu_trigger"
               data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="arrow"></span>
            </a>
            <!-- END RESPONSIVE MENU TOGGLER -->

            <div id="top_menu" class="nav notify-row">
                <!-- BEGIN NOTIFICATION -->
                <ul class="nav top-menu">
                    <!-- BEGIN SETTINGS -->
                    <li class="dropdown">
                        <a href="${pageContext.request.contextPath }/404.jsp" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-tasks"></i>
                            <span class="badge badge-important">0</span>
                        </a>
                        <%--<ul class="dropdown-menu extended tasks-bar">--%>
                        <%--<li>--%>
                        <%--<p>你有0条任务</p>--%>
                        <%--</li>--%>
                        <%--<li><a--%>
                        <%--href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<div class="task-info">--%>
                        <%--<div class="desc">控制台</div>--%>
                        <%--<div class="percent">44%</div>--%>
                        <%--</div>--%>
                        <%--<div class="progress progress-striped active no-margin-bot">--%>
                        <%--<div class="bar" style="width: 44%;"></div>--%>
                        <%--</div>--%>
                        <%--</a></li>--%>
                        <%--<li><a--%>
                        <%--href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<div class="task-info">--%>
                        <%--<div class="desc">数据库更新</div>--%>
                        <%--<div class="percent">65%</div>--%>
                        <%--</div>--%>
                        <%--<div--%>
                        <%--class="progress progress-striped progress-success active no-margin-bot">--%>
                        <%--<div class="bar" style="width: 65%;"></div>--%>
                        <%--</div>--%>
                        <%--</a></li>--%>
                        <%--<li><a--%>
                        <%--href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<div class="task-info">--%>
                        <%--<div class="desc">手机开发进度</div>--%>
                        <%--<div class="percent">87%</div>--%>
                        <%--</div>--%>
                        <%--<div--%>
                        <%--class="progress progress-striped progress-info active no-margin-bot">--%>
                        <%--<div class="bar" style="width: 87%;"></div>--%>
                        <%--</div>--%>
                        <%--</a></li>--%>
                        <%--<li><a--%>
                        <%--href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<div class="task-info">--%>
                        <%--<div class="desc">手机App进度</div>--%>
                        <%--<div class="percent">33%</div>--%>
                        <%--</div>--%>
                        <%--<div--%>
                        <%--class="progress progress-striped progress-warning active no-margin-bot">--%>
                        <%--<div class="bar" style="width: 33%;"></div>--%>
                        <%--</div>--%>
                        <%--</a></li>--%>
                        <%--<li>--%>
                        <%--<a href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<div class="task-info">--%>
                        <%--<div class="desc">控制台</div>--%>
                        <%--<div class="percent">90%</div>--%>
                        <%--</div>--%>
                        <%--<div--%>
                        <%--class="progress progress-striped progress-danger active no-margin-bot">--%>
                        <%--<div class="bar" style="width: 90%;"></div>--%>
                        <%--</div>--%>
                        <%--</a></li>--%>
                        <%--<li class="external">--%>
                        <%--<a href="${pageContext.request.contextPath }/404.jsp">查看所有任务</a>--%>
                        <%--</li>--%>
                        <%--</ul>--%>
                    </li>
                    <!-- END SETTINGS -->

                    <!-- BEGIN INBOX DROPDOWN -->
                    <li class="dropdown" id="header_inbox_bar">
                        <a href="${pageContext.request.contextPath }/404.jsp"
                           class="dropdown-toggle" data-toggle="dropdown"> <i
                                class="icon-envelope-alt"></i> <span
                                class="badge badge-important">0</span>
                        </a>
                        <%--<ul class="dropdown-menu extended inbox">--%>
                        <%--<li>--%>
                        <%--<p>你有5条消息</p>--%>
                        <%--</li>--%>
                        <%--<li><a--%>
                        <%--href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<span class="photo">--%>
                        <%--<img src="img/avatar-mini.png" alt="avatar">--%>
                        <%--</span>--%>
                        <%--<span class="subject">--%>
                        <%--<span class="from">Jonathan Smith</span> --%>
                        <%--<span class="time">Just now</span>--%>
                        <%--</span> <span class="message"> Hello, 这是个消息列子. </span>--%>
                        <%--</a></li>--%>
                        <%--<li>--%>
                        <%--<a href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<span class="photo">--%>
                        <%--<img src="img/avatar-mini.png" alt="avatar"></span>--%>
                        <%--<span class="subject"> <span class="from">Jhon Doe</span>--%>
                        <%--<span class="time">10 mins</span>--%>
                        <%--</span> <span class="message"> Hi, 最近咋样? </span>--%>
                        <%--</a></li>--%>
                        <%--<li>--%>
                        <%--<a href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<span class="photo">--%>
                        <%--<img src="img/avatar-mini.png"--%>
                        <%--alt="avatar"></span>--%>
                        <%--<span class="subject">--%>
                        <%--<span--%>
                        <%--class="from">Jason Stathum</span>--%>
                        <%--<span class="time">3 hrs</span>--%>
                        <%--</span>--%>
                        <%--<span class="message"> This is awesome dashboard. </span>--%>
                        <%--</a></li>--%>
                        <%--<li>--%>
                        <%--<a href="${pageContext.request.contextPath }/404.jsp">--%>
                        <%--<span class="photo"><img--%>
                        <%--src="img/avatar-mini.png"--%>
                        <%--alt="avatar"></span>--%>
                        <%--<span class="subject">--%>
                        <%--<span class="from">Jondi Rose</span> --%>
                        <%--<span class="time">Just now</span>--%>
                        <%--</span> <span class="message"> Hello, this is metrolab </span>--%>
                        <%--</a></li>--%>
                        <%--<li><a href="${pageContext.request.contextPath }/404.jsp">See all messages</a></li>--%>
                        <%--</ul>--%>
                    </li>
                    <!-- END INBOX DROPDOWN -->

                    <!-- BEGIN NOTIFICATION DROPDOWN -->
                    <li class="dropdown" id="header_notification_bar">
                        <a href="${pageContext.request.contextPath }/404.jsp"
                           class="dropdown-toggle" data-toggle="dropdown"> <i
                                class="icon-bell-alt"></i> <span class="badge badge-warning">3</span>
                        </a>
                        <ul class="dropdown-menu extended notification">
                            <li>
                                <p>你有3条预警信息</p>
                            </li>
                            <li><a
                                    href="${pageContext.request.contextPath }/404.jsp">
										<span class="label label-important"><i
                                                class="icon-bolt"></i></span> 自然流向
                                <span class="small italic" id="count">【 loading 条】</span>
                            </a></li>
                            <li><a href="${pageContext.request.contextPath }/404.jsp">
                                <span class="label label-warning"><i class="icon-bell"></i></span>
                                已标识为真正的自然流向
                                <span class="small italic" id="countReal">【 loading 条】</span>
                            </a></li>
                            <li><a href="${pageContext.request.contextPath }/404.jsp">
										<span class="label label-important"><i
                                                class="icon-bolt"></i></span>
                                待跟进处理（可能有真正的自然流向、可能有没跟进协议的流向）
                                <span class="small italic" id="waitDealCount">【 loaading 条 】</span>
                            </a></li>
                            <li><a href="${pageContext.request.contextPath }/404.jsp">
                                <span class="label label-info"><i class="icon-bullhorn"></i></span>
                                自然流向不及时处理，将影响费用分析的准确性，费用结算的及时性。
                                <span class="small italic"></span>
                            </a></li>
                        </ul>
                    </li>
                    <!-- END NOTIFICATION DROPDOWN -->
                </ul>
            </div>
            <!-- END  NOTIFICATION -->

            <div class="top-nav ">
                <ul class="nav pull-right top-menu">
                    <!-- BEGIN SUPPORT -->
                    <li class="dropdown mtop5">
                        <a class="dropdown-toggle element"
                           data-placement="bottom" data-toggle="tooltip"
                           href="${pageContext.request.contextPath }/404.jsp"
                           data-original-title="反馈意见">
                            <i class="icon-comments-alt"></i>
                        </a></li>
                    <li class="dropdown mtop5">
                        <a class="dropdown-toggle element"
                           data-placement="bottom" data-toggle="tooltip"
                           href="${pageContext.request.contextPath }/404.jsp"
                           data-original-title="帮助文档">
                            <i class="icon-headphones"></i>
                        </a></li>
                    <!-- END SUPPORT -->

                    <!-- BEGIN USER LOGIN DROPDOWN -->
                    <li class="dropdown">
                        <a href="${pageContext.request.contextPath }/404.jsp" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="img/avatar1_small.jpg" alt="">
                            <span class="username">Jobs1127</span>
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu extended logout">
                            <li><a
                                    href="${pageContext.request.contextPath }/404.jsp"><i class="icon-user"></i>我的资料</a></li>
                            <li><a href="update_password.jsp">
                                <i class="icon-cog"></i>修改密码</a></li>
                            <li><a
                                    href="login.jsp"><i class="icon-key"></i>退出系统</a></li>
                        </ul>
                    </li>
                    <!-- END USER LOGIN DROPDOWN -->
                </ul>
                <!-- END TOP NAVIGATION 导航 MENU -->
            </div>
        </div>
    </div>
    <!-- END TOP NAVIGATION 导航 BAR -->
</div>
<!-- END HEADER -->


<!-- BEGIN CONTAINER 容器 -->
<div id="container" class="row-fluid">
    <!-- BEGIN SIDEBAR 侧边栏-->
    <div class="sidebar-scroll" tabindex="5000"
         style="overflow: hidden; outline: none;">
        <div id="sidebar" class="nav-collapse collapse">

            <!-- BEGIN RESPONSIVE QUICK SEARCH FORM 响应快速搜索表单-->
            <div class="navbar-inverse">
                <form class="navbar-search visible-phone">
                    <input type="text" class="search-query" placeholder="Search">
                </form>
            </div>
            <!-- END RESPONSIVE QUICK SEARCH FORM -->

            <!-- BEGIN SIDEBAR MENU 侧边栏菜单 -->
            <ul class="sidebar-menu">
                <li class="sub-menu active">
                    <a class="" href="${pageContext.request.contextPath}/user/index.do">
                        <i class="icon-dashboard"></i> <span>流向查询</span>
                    </a></li>
                <li class="sub-menu">
                    <a href="javascript:;" class="">
                        <i class="icon-book"></i> <span>注册库管理</span>
                        <span class="arrow"></span>
                    </a>
                    <ul class="sub">
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">注册库查询</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">注册库录入</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">注册库下载</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">通过ID批量修改</a></li>
                    </ul>
                </li>
                <li class="sub-menu"><a href="javascript:;" class="">
                    <i class="icon-tasks"></i> <span>协议管理</span>
                    <span class="arrow"></span>
                </a>
                    <ul class="sub">
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">协议查询</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">协议录入</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">协议升级到4状态</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath}/download_plans.jsp">协议下载</a></li>
                    </ul>
                </li>

                <li class="sub-menu"><a href="javascript:;" class="">
                    <i class="icon-th"></i> <span>流向管理</span> <span class="arrow"></span>
                </a>
                    <ul class="sub">
                        <li><a class="" href="${pageContext.request.contextPath}/plans_query.jsp">流向查询</a></li>
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">流向录入</a></li>
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">协议复核到5状态</a></li>
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">全国提成计算</a></li>
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">自动标识新旧终端</a></li>
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">手动流向ID匹配协议ID</a></li>
                        <li><a class="" href="${pageContext.request.contextPath}/download_plans.jsp">流向下载</a></li>
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">手动提单操作栏</a></li>
                    </ul>
                </li>
                <li class="sub-menu"><a href="javascript:;" class="">
                    <i class="icon-fire"></i> <span>库存管理</span>
                    <span class="arrow"></span>
                </a>
                    <ul class="sub">
                        <!-- 差异库存计算和下载:1、上传实际库存，并计算差异，2、下载差异分析表 -->
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">理论、实际差异库存计算和下载</a></li>
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">下载全国最新理论库存</a></li>
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">按照时间点下载最新理论库存</a></li>
                        <!-- 终端库存管理:1、上传终端实际盘库库存，2、下载终端库存分析表 -->
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">终端库存管理</a></li>
                        <!-- 商业库存管理:1、上传商业实际盘库库存，2、下载商业库存分析表 -->
                        <li><a class="" href="${pageContext.request.contextPath }/404.jsp">商业库存管理</a></li>
                    </ul>
                </li>

                <li class="sub-menu">
                    <a class="" href="javascript:;">
                        <i class="icon-trophy"></i>
                        <span>市场规划管理</span> <span class="arrow"></span>
                    </a>
                    <ul class="sub">
                        <li><a href="${pageContext.request.contextPath }/404.jsp" class="">市场规划查询</a></li>
                        <li><a href="${pageContext.request.contextPath }/404.jsp" class="">市场规划录入</a></li>
                    </ul>
                </li>

                <li class="sub-menu"><a href="javascript:;" class="">
                    <i class="icon-file-alt"></i> <span>业务跟进管理</span>
                    <span class="arrow"></span>
                </a>
                    <ul class="sub">
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">销售政策录入</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">经理任务进度下载</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">重点两项录入</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">重点两项进度下载</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">促销政策录入</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">促销任务进度下载</a></li>
                        <!-- Q1/Q2/Q3/Q4 的达标奖励 -->
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">达标奖励下载</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">经理签到情况下载</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">半年总指标任务进度下载</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">全年总指标任务进度下载</a></li>
                    </ul>
                </li>

                <!-- 客户管理：
                    1、客户等级
                    2、是否重点客户
                    3、客户银行信息
                    4、客户商业信息
                    5、客户终端信息
                    -->
                <li class="sub-menu"><a href="javascript:;" class="">
                    <i class="icon-glass"></i> <span>客户管理</span>
                    <span class="arrow"></span>
                </a>
                    <ul class="sub">
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">客户查询</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">客户录入</a></li>
                        <li><a class=""
                               href="${pageContext.request.contextPath }/404.jsp">客户下载</a></li>
                    </ul>
                </li>

                <li><a class="" href="login.jsp">
                    <i class="icon-user"></i> <span>登录页面</span>
                </a></li>
            </ul>
            <!-- END SIDEBAR MENU -->
        </div>
    </div>
    <!-- END SIDEBAR -->

    <!-- BEGIN PAGE -->
    <div id="main-content">
        <!-- BEGIN PAGE CONTAINER-->
        <div class="container-fluid">
            <!-- BEGIN PAGE HEADER-->
            <div class="row-fluid">
                <div class="span12">
                    <!-- BEGIN THEME CUSTOMIZER-->
                    <div id="theme-change" class="hidden-phone">
                        <i class="icon-cogs"></i>
                        <span class="settings">
							<span class="text">主题颜色:</span>
							<span class="colors">
							<span class="color-default" data-style="default"></span>
							<span class="color-green" data-style="green"></span>
							<span class="color-gray" data-style="gray"></span>
							<span class="color-purple" data-style="purple"></span>
							<span class="color-red" data-style="red"></span>
							</span>
							</span>
                    </div>
                    <!-- END THEME CUSTOMIZER-->

                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title">流向查询</h3>
                    <ul class="breadcrumb">
                        <li><a
                                href="${pageContext.request.contextPath}/user/index.do">首页</a>
                            <span class="divider">/</span></li>
                        <li class="active">流向查询</li>
                        <li class="pull-right search-wrap">
                            <form action="${pageContext.request.contextPath }/404.jsp"
                                  class="hidden-phone">
                                <div class="input-append search-input-area">
                                    <input class="" id="appendedInputButton" type="text">
                                    <!-- 搜索 -->
                                    <button class="btn" type="button">
                                        <i class="icon-search"></i>
                                    </button>
                                </div>
                            </form>
                        </li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <!-- END PAGE HEADER-->
            <div class="row-fluid">
                <div class="span12">
                    <!-- BEGIN ALERTS PORTLET-->
                    <div class="widget orange" >
                        <div class="widget-title">
                            <h4><i class="icon-reorder"></i>【纯销】流向查询条件</h4>
                            <span class="tools">
									<a href="javascript:;" class="icon-chevron-down"></a>
									<a href="javascript:;" class="icon-remove"></a>
									</span>
                        </div>
                        <div class="widget-body" style="overflow:auto;">
                            <form method="post" id="query_plans_form" class="form-horizontal">
                                <table class="table table-striped" >
                                    <thead>
                                    <tr>
                                        <th >开始（<span style="color:red;">必填</span>）</th>
                                        <th >客户</th>
                                        <th></th>
                                        <th >品种</th>
                                        <th >协议状态</th>
                                        <th >结算状态</th>
                                        <th >流向ID（<span style="color:red;">填写了ID，开始时间结束时间非必填</span>）</th>
                                    </tr>
                                    </thead>
                                    <tbody id="">
                                    <tr>
                                        <td >
                                            <input type="text" style="width:70px;"
                                                   id="stime" onfocus="this.blur()"
                                                   name="stime" onclick="WdatePicker()" class="Wdate"/>
                                        </td>
                                        <td >
                                            <input type="text" style="width:70px;" id="client" name="client" class="input-small"/>
                                        </td>
                                        <td >
                                        </td>
                                        <td >
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox"  value="A" name="product"/> &nbsp;&nbsp;A
                                            </label>
                                        </td>
                                        <td >
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox" value="5"  name="policy_status"/> &nbsp;&nbsp;5状态
                                            </label>
                                        </td>
                                        <td >
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox" value="押"  name="jieshuang_status"/> &nbsp;&nbsp;押
                                            </label>
                                        </td>
                                        <td>
                                            <input type="text" style="width:120px;" id="ids" name="ids" class="input-small"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td >
                                            结束（<span style="color:red;"><b>必填</b></span>）
                                        </td>
                                        <td ><b><span ><label class="checkbox" style="width:70px;">终端</label></span></b></td>
                                        <td >
                                        </td>
                                        <td >
                                            <div style="margin: 5px;"></div>
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox"  value="Y" name="product"> &nbsp;&nbsp;Y
                                            </label>
                                        </td>
                                        <td >
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox" value="4" name="policy_status"/> &nbsp;&nbsp;4状态
                                            </label>
                                        </td>
                                        <td >
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox" value="待"  name="jieshuang_status"/> &nbsp;&nbsp;待
                                            </label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td >
                                            <input type="text" style="width:70px;"
                                                   id="etime" onfocus="this.blur()"
                                                   name="etime" onclick="WdatePicker()" class="Wdate"/>
                                        </td>
                                        <td >
                                            <input type="text" style="width:70px;" id="terminal" name="terminal" class="input-small"/>
                                        </td>
                                        <td >
                                        </td>
                                        <td >
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox" value="Z" name="product"/> &nbsp;&nbsp;Z
                                            </label>
                                        </td>
                                        <td >
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox" value="0" name="policy_status"/>&nbsp;&nbsp;0状态
                                            </label>
                                        </td>
                                        <td >
                                            <label class="checkbox" style="width:70px;">
                                                <input type="checkbox" value="毕" name="jieshuang_status"/> &nbsp;&nbsp;毕
                                            </label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    </tbody>
                                </table>
                                <br/>
                                <center>
                                    <button type="button" class="btn" onclick="refresh();"><i class="icon-remove"></i>
                                        重置
                                    </button>
                                    <button type="button" class="btn blue" onclick="query();"><i class="icon-ok"></i> 查询
                                    </button>
                                </center>
                            </form>
                        </div>
                    </div>
                    <!-- END ALERTS PORTLET-->
                </div>
            </div>

            <div class="row-fluid">
                <div class="span12">
                    <!-- BEGIN ALERTS PORTLET-->
                    <div class="widget blue">
                        <div class="widget-title">
                            <h4><i class="icon-reorder"></i>【纯销】流向清单列表</h4>
                            <span class="tools">
									<a href="javascript:;" class="icon-chevron-down"></a>
									<a href="javascript:;" class="icon-remove"></a>
									</span>
                        </div>
                        <div class="widget-body" style="overflow:auto">
                            <table class="table table-striped" width="700px;" style="table-layout:fixed">
                                <thead>
                                <tr>
                                    <th width="100px">日期</th>
                                    <th width="100px">客户</th>
                                    <th width="100px">终端</th>
                                    <th width="60px">品种</th>
                                    <th width="60px">包装</th>
                                    <th width="60px">数量</th>
                                    <th width="60px">协议状态</th>
                                    <th width="60px">结算状态</th>
                                </tr>
                                </thead>
                                <tbody id="selectPlans">
                                </tbody>
                            </table>
                        </div>

                    </div>
                    <!-- END ALERTS PORTLET-->
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<!-- BEGIN FOOTER -->
<div id="footer">2018 © 全安药业股份</div>
<!-- END FOOTER -->

<!-- BEGIN JAVASCRIPTS -->
<!-- Load javascripts at bottom, this will reduce page load time -->
<script src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
<script src="${pageContext.request.contextPath}/js/jquery.nicescroll.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.slimscroll.min.js"></script>
<script src="${pageContext.request.contextPath}/js/fullcalendar.min.js"></script>
<script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/js/jquery.easy-pie-chart.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/jquery.sparkline.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/Chart.js"></script>
<script src="${pageContext.request.contextPath}/js/jquery.scrollTo.min.js"></script>
<!--common script for all pages-->
<script src="${pageContext.request.contextPath }/js/common-scripts.js"></script>

<div id="ascrail2000" class="nicescroll-rails"
     style="width: 5px; z-index: 100; background: rgb(64, 64, 64); cursor: default; position: fixed; top: 60px; left: 175px; height: 635px; display: none;">
    <div
            style="position: relative; top: 0px; float: right; width: 5px; height: 0px; background-color: rgb(74, 139, 194); background-clip: padding-box; border-radius: 0px;"></div>
</div>
<div id="ascrail2000-hr" class="nicescroll-rails"
     style="height: 5px; z-index: 100; background: rgb(64, 64, 64); top: 690px; left: 0px; position: fixed; cursor: default; display: none;">
    <div
            style="position: relative; top: 0px; height: 5px; width: 0px; background-color: rgb(74, 139, 194); background-clip: padding-box; border-radius: 0px;"></div>
</div>
<div id="ascrail2001" class="nicescroll-rails"
     style="width: 8px; z-index: 1000; background: rgb(64, 64, 64); cursor: default; position: fixed; top: 0px; height: 100%; right: 0px; opacity: 0;">
    <div
            style="position: relative; top: 0px; float: right; width: 8px; height: 184px; background-color: rgb(74, 139, 194); background-clip: padding-box; border-radius: 0px;"></div>
</div>
<div id="ascrail2001-hr" class="nicescroll-rails"
     style="height: 8px; z-index: 1000; background: rgb(64, 64, 64); position: fixed; left: 0px; width: 100%; bottom: 0px; cursor: default; display: none; opacity: 0;">
    <div
            style="position: relative; top: 0px; height: 8px; width: 1366px; background-color: rgb(74, 139, 194); background-clip: padding-box; border-radius: 0px;"></div>
</div>
<!--script for this page only-->
<script src="${pageContext.request.contextPath}/js/easy-pie-chart.js"></script>
<script src="${pageContext.request.contextPath}/js/sparkline-chart.js"></script>
<script src="${pageContext.request.contextPath}/js/home-page-calender.js"></script>
<script src="${pageContext.request.contextPath}/js/home-chartjs.js"></script>
<script src="${pageContext.request.contextPath}/javascript/httpService.js"></script>
<script src="${pageContext.request.contextPath}/javascript/My97DatePicker/WdatePicker.js"></script>
<!-- END JAVASCRIPTS -->
<!-- 自定义的script方法 -->
<script type="text/javascript">
    //提示对话框
    $("#dialog2").dialog({
        autoOpen: false,
        width: 300,
        title: '<%=title%>',
        buttons: [
            {
                text: "知道了",
                click: function () {
                    $(this).dialog("close");
                }
            }
        ]
    });

    function refresh() {
        window.location.href = "${pageContext.request.contextPath }/WEB-INF/jsp/plans_query.jsp";
    }

    function query() {
        var params = $("#query_plans_form").serialize();
        var stime = $("#stime").val();
        var etime = $("#etime").val();
        var ids = $("#ids").val();
        if(ids == ""){
            if (stime == "" || etime == "") {
                $("#dialog2").html("");
                var html = '<p>请填写开始时间和结束时间，时间越短，速度越快！</p>';
                $("#dialog2").html(html);
                $("#dialog2").attr("class", "ui-dialog-content ui-widget-content");
                $("#dialog2").dialog("open");
                //alert("");
                return;
            }
        }

        //查询流向
        sendRequest(pageContextPath + "/plans/selectPlans.do", params, function (jsonData) {
            var list = jsonData.list;
            var buf = "";
            $("#selectPlans").html('');
            for (var i = 0; i < list.length; i++) {
                buf += '<tr>';
                buf += '<td style="width: 100px">' + list[i].sdate + '</td>';
                buf += '<td style="width: 100px">' + list[i].client + '</td>';
                buf += '<td style="width: 100px">' + list[i].terminal + '</td>';
                buf += '<td style="width: 60px">' + list[i].product + '</td>';
                buf += '<td style="width: 60px">' + list[i].pack + '</td>';
                buf += '<td style="width: 60px">' + list[i].count + '</td>';
                buf += '<td style="width: 60px">' + list[i].policy_status + '</td>';
                buf += '<td style="width: 60px">' + list[i].jieshuang_status + '</td>';
                buf += '</tr>';
            }
            $("#selectPlans").html(buf);
        });
    }
</script>
<!-- END BODY -->
</body>
</html>